//
//  UIImage+Lx.m
//  微博
//
//  Created by imera on 15-9-11.
//  Copyright (c) 2015年 imera. All rights reserved.
//

#import "UIImage+Lx.h"
@implementation UIImage (Lx)

+ (UIImage *)resizeWithName:(NSString *)name
{
    return [self resizeWithName:name left:0.5 top:0.5];
}

+ (UIImage *)resizeWithName:(NSString *)name left:(CGFloat)left top:(CGFloat)top
{
    UIImage *image = [UIImage imageNamed:name];
    return [image stretchableImageWithLeftCapWidth:image.size.width * left topCapHeight:image.size.height * top];
}
@end
